package JAVA300.第八章常用类;
/*
测试枚举类型
 */
public class TestEnum {
    public static void main(String[] args) {
        Season a = Season.Autum;

        switch (a){
            case Spring:
                System.out.println("spring");
                break;
            case Summer:
                System.out.println("Summer");
                break;
            case Autum:
                System.out.println("Autum");
                break;
            case Winter:
                System.out.println("Winter");
                break;
        }

    }

    enum Season{
        Spring,Summer,Autum,Winter;
    }
}
